<?php
require_once 'Zend/Db.php';
require_once 'NewsImpl/NewsDaoImpl.php';
require_once 'Connection.php';
class NewsDao implements NewsDaoImpl {
	var $db;
	public function NewsDao(){
		$conn=new Connection();
		$this->db=$conn->getConnectionDB();		
		
	}
	/**
	 * @param unknown_type $newsTo
	 */
	public function insert($newsTo) {
	
	}
	
	/**
	 * @param unknown_type $newsTo
	 * @param unknown_type $id
	 */
	public function upate($newsTo, $id) {
	
	}
	
	/**
	 * @param unknown_type $arr
	 */
	public function delete($arr) {
	
	}
	
	/**
	 * @param unknown_type $sql
	 */
	public function selectAll() {
		$data = $this->db->fetchAll ( 'SELECT * FROM bugs' );
		foreach ( $data as $row ) {
			echo $row [bug_description];
		}	
	}
}

$test=new NewsDao();
$test->selectAll();